import request from '@/utils/request'

const url = '/monitor/operlog'

// 查询操作日志列表
export function list(params) {
  return request({
    url,
    method: 'get',
    params
  })
}

// 删除操作日志
export function delOperlog(ids) {
  return request({
    url: `${url}/${ids}`,
    method: 'delete'
  })
}

// 清空操作日志
export function cleanOperlog() {
  return request({
    url: `${url}/clear`,
    method: 'delete'
  })
}
